package com.coder4j.biz.mapper;

import com.coder4j.starter.mybatis.BaseMapper;
import com.coder4j.biz.entity.AiWanxiangEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.Arrays;
import java.util.List;

/**
 * 通义万相
 * @author keller
 * @date 2024-12-09 15:39:06
 */
@Mapper
public interface AiWanxiangMapper extends BaseMapper<AiWanxiangEntity>{
	/**
     * 默认查询条件
     * @return
     */
    @Override
    default List<String> defaultCondition(){
    return Arrays.asList(
			" <if test = 'bizId!=null'> AND biz_id=#{bizId} </if>",
			" <if test = 'state!=null'> AND state=#{state} </if>",
            " <if test = 'createId!=null'> AND create_id=#{createId} </if>",
            " <if test = 'updateId!=null'> AND update_id=#{updateId} </if>");
    }
}
